﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EnterApp.Core.DomainModel
{
    public abstract class Entity<TEntityId> : IEntity<TEntityId>
    {
        public Entity(TEntityId id)
        {
            this.Id = id;
        }

        public TEntityId Id
        {
            get;

            //只能实例化时进行赋值
            private set;
        }
    }
}
